//
//  XMPBaseNavVC.m
//  MonkeyPlayVideo
//
//  Created by jingen zhuang on 2024/6/19.
//

#import "XMPBaseNavVC.h"

@interface XMPBaseNavVC ()

@end

@implementation XMPBaseNavVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBarHidden = YES;
    // Do any additional setup after loading the view.
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    
    NSMutableArray *newVCs = [NSMutableArray arrayWithArray:self.viewControllers];
    if (self.viewControllers.count == 1)
    {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [newVCs addObject:viewController];
    [self setViewControllers:newVCs animated:animated];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
